package com.ccp.dev.workflow.bpmutil;

import com.ccp.dev.core.basic.util.UUIDUtils;
import org.flowable.common.engine.impl.cfg.IdGenerator;
import org.springframework.stereotype.Component;

/**
 * ClassDescribe:flowable内置表主键生成器
 *
 * @author :jiayueqiao
 * Date: 2019-05-17
 * Since:1
 * To change this template use File | Settings | File Templates.
 */
@Component
public class FlowableIdGenerator implements IdGenerator {
    @Override
    public String getNextId() {
        return UUIDUtils.getUUIDFor32();
    }
}
